<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基于SpringBoot的社区问答系统</title>
    <link th:href="@{lib/layui/css/layui.css}" rel="stylesheet">
    <script th:src="@{lib/layui/layui.js}"></script>
    <script th:src="@{js/utilities.js}"></script>
    <link th:href="@{css/index.css}" rel="stylesheet">
    <script th:src="@{js/index.js}"></script>
</head>
<body>

<header class="header">
    <span id="account-info"></span>
    基于SpringBoot的社区问答系统
    <span id="account-action"></span>
</header>

<main class="main">
    <!-- Question List -->
    <div id="question-div">
        <div id="question-option">
            <form id="search-title-form" class="layui-form">
                <input id="search-title-input" type="text" name="title" placeholder="查询问题" autocomplete="off" class="layui-input">
                <button id="search-title-submit" class="layui-btn" lay-filter="search-title" lay-submit>查询</button>
            </form>
            <button id="question-add" class="layui-btn" lay-submit>新增</button>
        </div>
        <table class="layui-hide" id="question-table"></table>
    </div>

    <!-- Answer Section -->
    <div id="answer-div">
        <iframe id="answer-iframe" src="about:blank" frameborder="0" width="100%" height="100%"></iframe>
    </div>
</main>

<!-- Footer -->
<footer class="footer">项目制作人：王玉林、张栋、杨鸿硕</footer>

</body>
</html>